<template>
    <div>
        <hr>
        <div v-for="r in rou">
            <router-link :to="r.path">{{r.name}}</router-link>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Nav",
        data() {
            return {
                // 转换为数组
                rou: sessionStorage.getItem("dyRouter") != null ? JSON.parse(sessionStorage.getItem("dyRouter")) : []
            }
        }
    }
</script>
